package System;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import BaseClasses.User;

public class SystemObject implements Serializable
{
	/**
	 * @obj - the object that will be send
	 * @mode - tell the system mode
	 */
	
	private static final long serialVersionUID = 7563945870879352338L;
	private Object obj;
	private SysMode mode; 
	private List<Object> parameters;
	
	//**Constructors**//
	public SystemObject(Object ob, SysMode mode)
	{
		obj = ob;
		this.mode = mode;
	}
	
	public SystemObject(){
			this.parameters=null;}

	public SystemObject(List<Object> l, SysMode mode)
	{
		this.parameters=l;
		this.mode=mode;
		
	}
	//**Getters & Setters**//
	/**
	 * @return the obj
	 */
	public Object getObj() {
		return obj;
	}

	/**
	 * @param obj the obj to set
	 */
	public void setObj(Object obj) {
		this.obj = obj;
	}

	/**
	 * @return the mode
	 */
	public SysMode getMode() {
		return mode;
	}

	/**
	 * @param mode the mode to set
	 */
	public void setMode(SysMode mode) {
		this.mode = mode;
	}
	
	public String toString()
	{
		User user = (User)obj;
		String str= user.getUserID() + " " + user.getPassword();
		return str;
	}
	public List<Object> getParamList() {
		return parameters;
	}
	public void setParamList(List<Object> param) {
		this.parameters = param;
	}

}
